package com.jeasonzhao.commons.data;

public class BasicRow extends Row<Cell>
{
    private static final long serialVersionUID = 1L;
    public BasicRow()
    {
        super();
    }

    public BasicRow(int size)
    {
        super(size);
    }

    public BasicRow(Iterable<Cell> cells)
    {
        super(cells);
    }

    public BasicRow(Iterable<Cell> cells,boolean cleanSpans,boolean visible)
    {
        super(cells,cleanSpans,visible);
    }
    public BasicRow addValues(Object...values)
    {
        if(null==values)
        {
            return this;
        }
        for(Object v : values)
        {
            if(null==v)
            {
                this.add(new Cell());
            }
            else if(v instanceof Cell)
            {
                this.add((Cell) v);
            }
            else
            {
                this.add(new Cell(v));
            }
        }
        return this;
    }
}
